import React from 'react'
import { BrowserRouter as Router, Route, Redirect } from 'react-router-dom'

import Frame from './pages/Frame'
import City from './pages/city'

export default () => {
  return <Router>
    <Route exact path="/" render={() => <Redirect to="/frame/home" />}></Route>
    <Route path="/frame" component={Frame}></Route>
    <Route path="/city" component={City}></Route>
  </Router>
}
